package com.dq.order.client;

import com.dq.commonutils.dto.OrderCourseVo;
import com.dq.order.client.fallback.CourseClientFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @project: guli_parent
 * @ClassName: CourseFeign
 * @author: dq
 * @creat: 2022/8/17 15:40
 */
@FeignClient(value = "service-edu" /*,fallbackFactory = CourseClientFallBackFactory.class*/)
@Component
public interface CourseClient {

    /**
     * 查询Course基本信息
     * @param courseId
     * @return
     */
    @GetMapping("/eduservice/course/getOrderCourseInfo/{courseId}")
    OrderCourseVo getOrderCourseInfo(@PathVariable("courseId") String courseId);


}
